
#include <Eigen/Core>
#include<iostream>
using namespace std;
using namespace Eigen;

int main()
{
	MatrixXd::Index maxRow, maxCol;
	MatrixXd::Index minRow, minCol;
	MatrixXd mMat(4, 4);
	mMat << 11, 10, 13, 15,
		3, 24, 56, 1,
		2, 12, 45, 0,
		8, 5, 6, 4;
	double min = mMat.minCoeff(&minRow, &minCol);
	double max = mMat.maxCoeff(&maxRow, &maxCol);
	cout << "Max = \n" << max << endl;
	cout << "Min = \n" << min << endl;
	cout << "minRow = " << minRow << "minCol = " << minCol << endl;
	cout << "maxRow = " << maxRow << "maxCol = " << maxCol << endl;
	cout << "abc123" << endl;

	return 0;
}
